/**
 * Created by apple on 2017/12/31.
 */
import {Menu, Button} from 'antd-mobile';
import {View} from 'react-native'
import React from 'react';
const data = [
  {
    value: '1',
    label: 'Food',
  }, {
    value: '2',
    label: 'Supermarket',
  },
  {
    value: '3',
    label: 'Extra',
    isLeaf: true,
  },
];
export default class MenuExample extends React.Component<any, any> {

  constructor(arg) {
    super(arg);
    this.state = {
      show: false,
      initData: ''
    }
  }

  clickButton() {
    console.log(123)
    this.setState({
      initData: data
    })
  }

  render() {
    return (
      <View>
        <Button onClick={this.clickButton.bind(this)}>click me</Button>
        <View>
          <Text>交给react-native了</Text>
        </View>
      </View>
    );
  }
}